Skip to content

Run integration tests in the default CI build#270

Merged
vharseko merged 1 commit into
OpenIdentityPlatform:masterfrom
vharseko:fix/ci-run-integration-tests
Jul 11, 2026
Merged

Run integration tests in the default CI build#270
vharseko merged 1 commit into
OpenIdentityPlatform:masterfrom
vharseko:fix/ci-run-integration-tests

Conversation

@vharseko

Copy link
Copy Markdown
Member

Problem

The Build Maven workflow runs mvn package, which stops before the integration-test and verify phases. As a result, the failsafe integration tests (*IT.java) never run on pull requests:

  • commons/auth-filters/authn-filter/jaspi-functional-tests — 7 TestNG IT classes (run in-process, no container)
  • commons/auth-filters/authz-filter/framework-functional-tests — TestNG ITs deployed to Tomcat 10/11 via Cargo (surefire is explicitly excluded there, so nothing runs at all)

They were only exercised indirectly by the deploy workflow on master (mvn deploy goes through the full lifecycle).

Change

Switch the build command from mvn package to mvn verify, so every CI build runs the integration tests. This also activates the verify-phase checks that were previously skipped: the persistit animal-sniffer Java API compatibility check and source jar attachment.

Validation

  • Local mvn verify on both functional-test modules (JDK 26): 48 + 72 tests pass, including Tomcat 11 startup via Cargo.
  • Local mvn verify on persistit modules: animal-sniffer check passes.
  • The deploy workflow on master already runs these phases via mvn deploy (JDK 11, ubuntu) and is consistently green.

The Build Maven workflow stopped at the package phase, so failsafe
integration tests (*IT.java) in jaspi-functional-tests and
framework-functional-tests never ran on pull requests — they were only
exercised by the deploy workflow on master. Switch the build to
mvn verify so the integration-test and verify phases run in CI,
which also enables the persistit animal-sniffer API compatibility check.
@vharseko vharseko added ci Build, CI/CD, JDK matrix and workflow changes tests Test code changes labels Jul 11, 2026
@vharseko vharseko merged commit 9d64b4a into OpenIdentityPlatform:master Jul 11, 2026
14 checks passed
@vharseko vharseko deleted the fix/ci-run-integration-tests branch July 11, 2026 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Build, CI/CD, JDK matrix and workflow changes tests Test code changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant